﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace EmotionRecognitionEntities
{
    public  class Case
    {
        //
        int caseId;
        bool existsInDb;
        int typicality;
        bool isIndex;
        List <int> auList= new List<int>();

        int chunkID;

        //bool array for Refinement
        bool[] array=new bool[47];

        public Case(){}
        public Case(Case newCase)
        {
            this.caseId = newCase.caseId;
            this.typicality = newCase.typicality;
            this.chunkID = newCase.chunkID;
            this.auList = newCase.auList;
        }
        public Case(int caseId, int typicality, int chunkID, List<int> auList, bool isIndex)
        {

            this.caseId = caseId;
            this.typicality = typicality;
            this.chunkID = chunkID;
            this.auList = auList;
            this.IsIndex = isIndex;

        }


        public void CreateRefinementArray()
        {
            foreach (int au in auList)
            {
                array[au] = true;
            }

        }


        #region Public Properties


        public int CaseID
        {
            get
            {
                return caseId;
            }

            set
            {
                caseId = value;
            } 
        }

        public bool IsIndex
        {
            get
            {
                return isIndex;
            }

            set
            {
                isIndex = value;
            }
        }
        public bool ExistsInDb

        {
            get
            {
                return existsInDb;
            }

            set
            {
                existsInDb = value;
            }
        }

        public int Typicality
        {
            get
            {
                return typicality;
            }

            set
            {
                typicality = value;
            }
        }



        public List<int> AuList
        {
            get
            {
                return auList;
            }

            set
            {
                auList = value;
            }
        }

        public int ChunkID
        {
            get
            {
                return chunkID;
            }

            set
            {
                chunkID = value;
            }
        }


        public bool[] RefinementArray
        {
            get
            {
                return array;
            }

            set
            {
                array = value;
            }

        }

        #endregion

    }
}
